package your.packag;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class DetailHistoryActivity extends Activity {
	TextView id;
	TextView name;
	TextView date;
	TextView account;
	TextView category;
	TextView description;
	TextView money;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.detail_history);
        id = (TextView) findViewById(R.id.detailhistorytextView1);
        name = (TextView) findViewById(R.id.detailhistorytextView2);
        date = (TextView) findViewById(R.id.detailhistorytextView3);
        account = (TextView) findViewById(R.id.detailhistorytextView4);
        category = (TextView) findViewById(R.id.detailhistorytextView5);
        description = (TextView) findViewById(R.id.detailhistorytextView6);
        money = (TextView) findViewById(R.id.detailhistorytextView7);
        
        Bundle extras =getIntent().getExtras();
        
        id.setText("ID :    " + extras.getString("Id"));
        name.setText("NAME :     " + extras.getString("Name"));
        date.setText("DATE :     " + extras.getString("Date"));
        account.setText("ACCOUNT :     " + extras.getString("Account"));
        category.setText("CATEGORY :     " + extras.getString("Category"));
        description.setText("DESCRIPTION :     " + extras.getString("Description"));
        money.setText("MONEY :     " + extras.getString("Money"));
	}

}
